package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author ablbb
 * @since 2024-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BuildingManagement对象", description="")
public class BuildingManagement extends Model<BuildingManagement> {

    private static final long serialVersionUID = 1L;

            @ApiModelProperty(value = "樓棟名")
    @TableId("building_id")
    private String buildingId;

            @ApiModelProperty(value = "樓層數")
    private Integer totalFloor;

            @ApiModelProperty(value = "用途（1本科0研究生2博士生3其他）")
    private String type;

            @ApiModelProperty(value = "面向對象1本科0研究")
    private String object;

            @ApiModelProperty(value = "性別")
    private String sex;

            @ApiModelProperty(value = "聯係方式")
    private String contactWay;

            @ApiModelProperty(value = "物業管理")
    private String propertyUnit;

            @ApiModelProperty(value = "樓管名字")
    private String residentialManager;

    private String teacherName;

            @ApiModelProperty(value = "通過代碼調用計算床位管理表中一棟樓的房間總數")
    private Integer totalRoom;

            @ApiModelProperty(value = "同total_room")
    private Integer totalBed;

    private Boolean isDeleted;

    @TableField("community_id")
    private String communityId;


    @Override
    protected Serializable pkVal() {
        return this.buildingId;
    }

}
